// api.js
import {
	get,
	post,
	put
} from '../utils/request.js';

// 登录接口
export const login = (data) => {
	return post('/center/portal/login', data);
};

// 获取医生信息
export const getDoctorInfoById = (params) => {
	return get('/wechatDoctor/getDoctorInfoById', params);
};

// 注册医生
export const registerDoctor = (data) => {
	return post('/api/internetHospital/drugDoctor', data);
};

// 修改医生信息
export const updateDoctor = (data) => {
	return put('/api/internetHospital/drugDoctor', data);
};

// 通过id获取医生信息
export const getDrugDoctor = (id) => {
	return get('/api/internetHospital/drugDoctor/' + id, {});
};